package com.tjhzzx.hnceCore2024.enums;

import javax.baja.sys.BFrozenEnum;
import javax.baja.sys.Sys;
import javax.baja.sys.Type;

/**
 * @author Luc
 * @version 1.0
 * @date 2022-08-23 14:41
 */
public final class BTreeMenuMode extends BFrozenEnum {
    public static final int INLINE = 0;
    public static final int HORIZONTAL = 1;
    public static final int VERTICAL = 2;

    public static final BTreeMenuMode inline = new BTreeMenuMode(0);
    public static final BTreeMenuMode horizontal = new BTreeMenuMode(1);
    public static final BTreeMenuMode vertical = new BTreeMenuMode(2);

    public static final BTreeMenuMode DEFAULT = inline;

    public BTreeMenuMode(int ordinal) {
        super(ordinal);
    }

    public static BTreeMenuMode make(int ordinal) {
        return (BTreeMenuMode) vertical.getRange().get(ordinal, false);
    }

    public static BTreeMenuMode make(String tag) {
        return (BTreeMenuMode) vertical.getRange().get(tag);
    }

    public static String expose() {
        return "{\"INLINE\":0, \"HORIZONTAL\":1, \"VERTICAL\":2}";
    }

    @Override
    public Type getType() {
        return TYPE;
    }

    public static final Type TYPE = Sys.loadType(BTreeMenuMode.class);
}
